package com.edison.demo.until;

import java.util.Arrays;
import java.util.List;
import java.util.Random;

/**
 * @author edison
 */
public class EnNameGenerator {

    private EnNameGenerator(){
        throw new IllegalStateException("Utility class");
    }
    private static final Random RANDOM = new Random();

    private static final List<String> FIRST_NAMES = Arrays.asList(
            "James", "John", "Robert", "Michael", "William", "David", "Richard", "Joseph", "Charles", "Thomas",
            "Mary", "Patricia", "Jennifer", "Linda", "Elizabeth", "Barbara", "Susan", "Jessica", "Sarah", "Karen"
    );

    private static final List<String> LAST_NAMES = Arrays.asList(
            "Smith", "Johnson", "Williams", "Brown", "Jones", "Garcia", "Miller", "Davis", "Martinez", "Hernandez",
            "Lopez", "Gonzalez", "Wilson", "Anderson", "Thomas", "Taylor", "Moore", "Jackson", "Martin", "Lee"
    );


    public static String generateRandomName() {
        String firstName = FIRST_NAMES.get(RANDOM.nextInt(FIRST_NAMES.size()));
        String lastName = LAST_NAMES.get(RANDOM.nextInt(LAST_NAMES.size()));
        return firstName + " " + lastName;
    }


}
